package com.bluesky.drcp.business.service;

import java.util.List;

import com.bluesky.drcp.business.Role;
import com.bluesky.drcp.persistence.dao.RoleDao;

public class RoleService {
	private RoleDao roleDao;

	public RoleDao getRoleDao() {
		return roleDao;
	}

	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}
	
	public void delete(String id) {
		roleDao.delete(id);
	}

	public Role get(String id) {
		return roleDao.get(id);
	}

	public List getAll() {
		return roleDao.getAll();		
	}

	public String save(Role role) {
		return roleDao.save(role);		
	}

	public void update(Role role) {
		roleDao.update(role);		
	}
}
